import BScroll from "better-scroll";
let betterScrollHorizontal = function (that, wrapper, content, num, itemWidth){
    content.style.width = num * itemWidth + "rem";
    that.$nextTick(() => {
        that.scroll = new BScroll(wrapper, {
            startX:0,
            scrollX:true,
            scrollY:false,
            click:true,
        });
    });
}
export { betterScrollHorizontal };